package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.AttendDismissed;
import cn.stylefeng.guns.sys.modular.system.model.params.AttendAuditDdSupervisorParam;
import cn.stylefeng.guns.sys.modular.system.model.params.AttendDismissedParam;
import cn.stylefeng.guns.sys.modular.system.model.result.AttendAuditManagerSetResult;
import cn.stylefeng.guns.sys.modular.system.model.result.AttendDismissedResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 驳回意见历史表 Mapper 接口
 * </p>
 *
 * @author wjk
 * @since 2021-09-14
 */
public interface AttendDismissedMapper extends BaseMapper<AttendDismissed> {

    /**
     * 获取列表
     *
     * @author wjk
     * @Date 2021-09-14
     */
    List<AttendDismissedResult> customList(@Param("paramCondition") AttendDismissedParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wjk
     * @Date 2021-09-14
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") AttendDismissedParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wjk
     * @Date 2021-09-14
     */
    Page<AttendDismissedResult> customPageList(@Param("page") Page page, @Param("paramCondition") AttendDismissedParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author wjk
     * @Date 2021-09-14
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") AttendDismissedParam paramCondition);

    /**
     * 增加驳回员工的驳回信息(批量增加)
     * @param param
     * @return
     */
    int addList(List<AttendAuditManagerSetResult> param);

    /**
     *
     * @param param
     * @return
     */
    int deleteAttendDismissedByAccount(AttendAuditDdSupervisorParam param);
    /**
     * （督导审核页面）督导审核，获取总的驳回,一个总的驳回；
     * @param account
     * @return
     */
    List<AttendDismissed> getAttendDismissed(@Param("account")String account,@Param("attendMonth")String attendMonth,@Param("shopName")String shopName);
    /**
     * 修改若有驳回状态的信息，修改驳回信息为历史记录
     * @param aaId
     * @Date 2021-11-23
     */
    int updateDismissedStateByAaId(@Param("aaId") String aaId);
}
